//
//  InternetbankView.m
//  SZBank
//
//  Created by rimi on 16/7/20.
//  Copyright © 2016年 LuoYao. All rights reserved.
//

#import "InternetbankView.h"
@interface InternetbankView()
{
    CGFloat frameWidth;/**  自身宽度 */
    CGFloat frameHeight;/**  自身高度 */
}

@property (nonatomic,strong) UIWebView *bankWebView;
@end
@implementation InternetbankView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        frameWidth = self.frame.size.width;
        frameHeight = self.frame.size.height;
        [self addSubview:self.bankWebView];
    }
    return self;
}

- (UIWebView *)bankWebView{
    if (!_bankWebView) {
        _bankWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, frameWidth, KHEIGHT)];
        _bankWebView.backgroundColor = [UIColor whiteColor];
        NSURL *url = [NSURL URLWithString:@"http://117.172.47.171:1113/szbank/pweb/login.html"];
        [_bankWebView loadRequest:[NSURLRequest requestWithURL:url]];
    }
    return _bankWebView;
}
@end
